from flask import session
from flask_script import Manager
from flask_migrate import MigrateCommand
from info import create_app

app = create_app("dev")  # 创建app
mgr = Manager(app)  # 创建管理器
mgr.add_command("mc", MigrateCommand)  # 添加迁移命令


if __name__ == '__main__':
    mgr.run()